package main

import "fmt"

func main() {
	fmt.Println("Hello World")
	p2 := Add2()
	fmt.Printf("p2(2): %d\n", p2(2))
	TwoAdder := Adder(1)
	fmt.Printf("Twoadder(3) %d\n", TwoAdder(2))
}

func Add2() func(b int) int {
	return func(b int) int {
		return b + 2
	}
}

func Adder(a int) func(b int) int {
	return func(b int) int {
		return a + b
	}
}
